package com.chexiehui.jc.mvp.car;

import com.chexiehui.jc.Constants;
import com.chexiehui.jc.base.BaseModel;
import com.chexiehui.jc.base.BaseView;
import com.chexiehui.jc.entity.CarInfo;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Description 二手车详情
 * @Auth SongJun
 * @Date 2020/05/21 00:18
 **/
public interface CarGarageAssistantDetailsCovenant {

    interface View extends BaseView {
        void onGetDetailsInfoSuccess(BaseModel<CarInfo> successResult);
        void onGetDetailsInfoFailure(BaseModel<Object> failureResult);
        String getCarId();
    }

    interface Stores {
        @FormUrlEncoded
        @POST(Constants.URL_CAR_HAND_DETAILS)
        Observable<BaseModel<CarInfo>> getDetailsInfo(@Field("id") String id);

    }

    interface Presenter {
        void getDetailsInfo();
    }

}